package com.ys.web.pojo;

import java.util.Date;

public class CustomerFollowUp implements Comparable<CustomerFollowUp>{
	
	private Integer id;  //自增主键
	private Integer companyId;//公司id
	private String userId;//跟进人id
	private String userName;//跟进人id
	private String companyName;//公司名称
	private String followUpTitle;//跟进标题
	private String followUpContent;//跟进内容
	private String followUpTime;//跟进时间
	private String state;//是否生效
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getFollowUpTitle() {
		return followUpTitle;
	}
	public void setFollowUpTitle(String followUpTitle) {
		this.followUpTitle = followUpTitle;
	}
	public String getFollowUpContent() {
		return followUpContent;
	}
	public void setFollowUpContent(String followUpContent) {
		this.followUpContent = followUpContent;
	}
	public String getFollowUpTime() {
		return followUpTime;
	}
	public void setFollowUpTime(String followUpTime) {
		this.followUpTime = followUpTime;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return "CustomerFollowUp [id=" + id + ", companyId=" + companyId + ", userId=" + userId + ", userName="
				+ userName + ", companyName=" + companyName + ", followUpTitle=" + followUpTitle + ", followUpContent="
				+ followUpContent + ", followUpTime=" + followUpTime + ", state=" + state + "]";
	}
	@Override
	public int compareTo(CustomerFollowUp cfu) {
		 int i = cfu.getFollowUpTime().compareTo(this.getFollowUpTime());//先按照年龄排序  
		return i;
	}
	
	
}
